﻿using System;
using System.Collections.Generic;
using System.Web;
using He.Web.UI;

namespace He.Web.tools
{
    /// <summary>
    /// wx_ajax 的摘要说明
    /// </summary>
    public class wx_ajax : AjaxHandler
    {

        public void ProcessRequest(HttpContext context)
        {
            UI.Manage bk = new UI.Manage();
            if (!bk.IsAdminLogin())
            {
                EchoJson(0, "您还未登陆，请先登陆");
                return;
            }

            //取得事件类型
            string action = InputUtil.Get("action");

            switch (action)
            {
                //删除绑定文章
                case "delBindArticle":
                    delBindArticle(context);
                    break;
            }
        }

        #region 修改字表标题===================================
        private void delBindArticle(HttpContext context)
        {
            int id = InputUtil.Get("id", 0);
            int aid = InputUtil.Get("aid", 0);

            BLL.wx_keyword wxbll = new BLL.wx_keyword();
            BLL.article abll = new BLL.article();
            Model.article article = abll.GetModel(aid);
            EchoJson(1, "");
        }
        #endregion

        public bool IsReusable
        {
            get
            {
                return false;
            }
        }
    }
}